takeSnapshot

suspend fun takeSnapshot(): Image

Takes a snapshot of this view's current contents, and returns it as an Image (e.g. for a fast capture when a full photo is not needed). It runs on the main thread.

Throws

If this view isn't ready yet, or has no contents to snapshot.